package com.xblog.chatbox.vlmp.core.spec;




import com.xblog.chatbox.vlmp.core.VlmpAgentResponse;

import java.util.Optional;

/**
 * @author wusy
 **/
public class StringCallResponseSpec implements CallResponseSpec {

    public static final StringCallResponseSpec EMPTY_SPEC = new StringCallResponseSpec(null);

    private final VlmpAgentResponse content;

    private StringCallResponseSpec(VlmpAgentResponse content) {
        this.content = content;
    }

    public static StringCallResponseSpec of(VlmpAgentResponse content) {
        return new StringCallResponseSpec(content);
    }

    public Optional<VlmpAgentResponse> content() {
        return Optional.ofNullable(this.content);
    }


}
